package ca.uvic.group2.beans;

//import java.io.Serializable;

public class StockRecordBean 
{

	private String stock;
	private int amount;
	private int reserveAmount; // This reserve is non-persistent and used only by transaction server
	private int triggerReserveAmount; // This reserve is stored in the database

	public StockRecordBean(StockRecordBean src) 
	{
		this(src.stock, src.amount);
		setReserveAmount(src.reserveAmount);
		setTriggerReserveAmount(src.triggerReserveAmount);
	}



	public StockRecordBean(String stock, int amount) 
	{
		setStock(stock);
		setAmount(amount);
	}

	public String getStock()
	{
		return this.stock;
	}
	public void setStock(String stock)
	{
		this.stock = stock;
	}

	public int getAmount()
	{
		return this.amount;
	}
	public void setAmount(int amount)
	{
		this.amount = amount;
	}

	public int getReserveAmount()
	{
		return this.reserveAmount;
	}
	public void setReserveAmount(int reserveAmount)
	{
		this.reserveAmount = reserveAmount;
	}

	public int getTriggerReserveAmount()
	{
		return this.triggerReserveAmount;
	}
	public void setTriggerReserveAmount(int triggerReserveAmount)
	{
		this.triggerReserveAmount = triggerReserveAmount;
	}

}